Container.inherit("Control");

function Container(node){
    //this.Control(node);
}

Container.prototype.toString=function () {
/*	var state="";
	for (var i=0; i<this.controls.length; i++ ){
		var control=this.controls[i];
		if (control&&control.toString()){
			state=String.safeConcat(state,String.safeConcat(Utils.isDefined(this.labels[i])?this.labels[i].toString():"",control.toString()," "),"; ");
		}	
	}
	return state;*/ return "";
}

Container.prototype.clear=function (clearDisabled) {
    if (!Utils.isDefined(clearDisabled)) {
        clearDisabled = true;
    }
    var iter = new NodeIterator(this.node);
    while (iter.hasNext()){
        var node = iter.next();
        if (!Framework.instance.isControlNode(node)){
            continue;
        }
        var control = Framework.instance.getControlByNode(node);
        if (Utils.isDefined(control["clear"])) {
            if (control.isEnabled()||clearDisabled){
                control.clear();
            }
        }
        iter.skipChildNodes();
    }
}
